package com.zjxny.exception;

import lombok.Getter;
import lombok.Setter;

/**
 * 异常信息对象
 */
@Setter
@Getter
public class TrafficException extends  Exception{

    private static final long serialVersionUID = 8974265939612156533L;

	private String message;
    
    private String toUser;
    
    private String accountName;

    /**
     * code=-1, message="会话过期"
     * code=
     */
    private Integer code;

    public TrafficException(String message, Integer code,String toUser,String accountName){
        this.message = message;
        this.code = code;
        this.toUser=toUser;
        this.accountName = accountName;
    }
}